package com.example.book.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-12-11
 * Time: 16:50
 */
@Data
public class PageRequest {
    private Integer pageNum = 1;
    private Integer pageSize = 10;
    private Integer offset;
    public Integer getOffset() {
        return (pageNum-1) * pageSize;
    }

}
